home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / tde210.zip / TDE.DOC < prev    next >
Text File  |  1992-11-13  |  62KB  |  1,383 lines

  1.  
  2.                        TDE, the Thomson-Davis Editor
  3.                                 Version 2.10
  4.                              November 13, 1992
  5.                                 Frank Davis
  6.  
  7.  
  8. Description:
  9.  
  10.   TDE is a simple, public domain, multi-file/multi-window text editor
  11.   written for IBM PCs and close compatibles.  TDE is suitable for editing
  12.   batch files, text files, and various computer language source code
  13.   files.  The only limit on the number and size of files that TDE can
  14.   handle is the amount of conventional memory.  Likewise, the only limit
  15.   on the number of windows is the amount of conventional memory.  There is
  16.   no preset maximum number of files or windows that may be open at any one
  17.   time.
  18.  
  19.  
  20. Introduction:
  21.  
  22.   I work with data files, computer source code, and output files quite a
  23.   bit.  Most of the features in TDE are related, in some way, to handling
  24.   those types of files.  The various window and cursor commands in TDE are
  25.   really nice for comparing and editing source code or output files.  A
  26.   good collection of block commands is available for use on source code
  27.   and formatted data files.  For what little word processing I do, TDE has
  28.   a few simple commands for formatting text and paragraphs.  In short, TDE
  29.   contains most of the features that I use most of the time in an easy to
  30.   use, easy to remember, and easy to configure editor.  I hope you find
  31.   TDE as easy to use for most of your routine editing as me.
  32.  
  33.  
  34. Usage:
  35.  
  36.   At the command line type:
  37.  
  38.         tde [ [-f search_pattern] file name(s)]
  39.  
  40.   For example:
  41.  
  42.         tde
  43.         tde foo.bar
  44.         tde c:\c60\TDE\main.c
  45.         tde *.c  \qc25\TDE\*.h
  46.         tde foo.bar  foobar  f*  foo.*  f??b??
  47.  
  48.       * * *  to search files for a pattern and load matches  * * *
  49.  
  50.         tde  -f  find_me_load_me  foo.*
  51.         tde  -f  find_me_load_me  foo.*  *.bar
  52.  
  53.  
  54.   If you don't enter a file name at the command line, TDE will prompt you
  55.   for a file name.  If the file does not exist, TDE starts out with an
  56.   empty file with the file name you just entered.
  57.  
  58.   TDE will handle files as large 440k.  If you try to edit a file larger
  59.   than 440k, only the first portion of the file is loaded into TDE.  With
  60.   DOS 5.0, you can edit files as large as 485k if you load DOS high.  TDE
  61.   will handle lines as long as 1040 characters.  Only the first 1040
  62.   characters of long lines are handled.
  63.  
  64.  
  65. Oops, 2.1 has a booboo.
  66.  
  67.    With tabs inflated, the STREAM block function did not handle some block
  68.    operations correctly.  Version 2.10 corrects that error.
  69.  
  70.    While I was under the hood, I modified the find functions.  Now,
  71.    finding a string is even faster.  See findrep.c for details.
  72.  
  73.  
  74. What's new:
  75.  
  76.  
  77.                       New features in TDE 2.1 include:
  78.  
  79.         SetLtabs                = ^Tab
  80.         SetPtabs                = ^Tab, prompts for both Ltabs and Ptabs
  81.         BlockCompressTabs       = #@C
  82.         BlockIndentTabs         = #@I
  83.         ToggleTabInflate        = #@T
  84.         DefineDiff              = #F7
  85.         RepeatDiff              = F7
  86.         -f pattern files        = command line option to define S&S
  87.         DefineSearchAndSeize    = #F12
  88.         RepeatSearchAndSeize    = F12
  89.         SwapBlock               = #@S
  90.         Sort sequence           = Config file
  91.  
  92.  
  93.                              Renamed functions:
  94.  
  95.         ReplaceString           == ReplaceForward || ReplaceBackward
  96.         PanUp                   == FixedScrollUP
  97.         PanDown                 == FixedScrollDn
  98.         PanLeft                 == ScrollLeft
  99.         PanRight                == ScrollRight
  100.  
  101.  
  102.   The new tab functions that make TDE more "standard" are ltabs, ptabs,
  103.   and TabInflate.  Logical tabs define the tab stops on the screen.
  104.   Physical tabs are the actual tab characters embedded in text.  The most
  105.   common setting for physical tabs is 8.  The setting for logical tabs
  106.   varies greatly depending on personal taste.  Indentation styles also
  107.   vary with personal taste.  An easy way to change one indentation style
  108.   to another is to compress leading space to physical tabs.  Then, the
  109.   physical tab width may changed to the desired indentation style and
  110.   expanded.  Displaying tabs without physically expanding them is called
  111.   TabInflate in TDE.  TabInflate treats tab characters on the screen as
  112.   space.  To give you an idea of tab positions, the display EOL function
  113.   (Control-F2) displays inflated tab positions.
  114.  
  115.   At work, we may have several versions of one program.  For me, I find it
  116.   hard to remember which changes were made to which source files.  There
  117.   are several diff utilities that can point out differences, but I
  118.   probably need the edit those differences anyway.  The diff options I
  119.   find most useful are:  setting the diff start, ignore leading space,
  120.   ignore all space, and ignore blank lines.  A non-standard diff option
  121.   that appeals to writers is ignore end of line, because diffing a
  122.   paragraph with only margin changes will produce no diffs.  The new diff
  123.   function in TDE prompts for the windows and the starting diff options.
  124.   Once the diff is defined, press the RepeatDiff key at any time to find
  125.   the next diff.  With cursor sync turned on, it's easy to move the
  126.   cursors to begin the next diff.  Any two visible windows may be diffed.
  127.   You may even diff windows in the same file, which is really nice for
  128.   comparing similar functions, data, or text in separate areas of a file.
  129.  
  130.   After using the EditNextFile function (Alt-F4) for a while, it seemed to
  131.   lack a very useful feature.  The reason I use EditNextFile is to search
  132.   files for a common blocks, structures, strings, etc...  Being that TDE
  133.   has a find function, might as well let TDE search and load files that
  134.   have the matching string.  When testing the new function, I found my
  135.   ownself needing a command line "Search and Seize" and a function key
  136.   "Search and Seize."  Just give SearchAndSeize a pattern to search for
  137.   and the files you want to search.  SearchAndSeize will load only those
  138.   files that contain the search pattern.  S&S turned out really nice.
  139.   On my system, S&S can search 10 100K files (10 x 100k = 1 Megabyte) in
  140.   10 seconds.  Your mileage may vary.
  141.  
  142.   I can't speak, read, or write English too very good and I can't speak
  143.   any other language at all.  So, I felt qualified to add sort sequences
  144.   for non-English languages:  English, Esperanto, Finnish, French, German,
  145.   and Swedish.  You may customize the sort sequence in tde.cfg.  Actually,
  146.   Pierre Jelenc sent in the sort sequences for those languages.  I
  147.   probably messed them up, so if the sort sequences don't do right then
  148.   blame me.  Examples of the sort sequences are at the bottom of the
  149.   config file.  Incidentally, Pierre is developing a general purpose,
  150.   language independent sort program.  Pierre's sort program will handle a
  151.   much wider range of alphabets and languages than TDE.
  152.  
  153.   The new SwapBlock function works only with BOX blocks.  Every once in a
  154.   while, I need to swap rows of numbers or areas of text.  The width of
  155.   the swap area assumed to be the width of the BOX.
  156.  
  157.  
  158.                    New features in TDE 2.0e include:
  159.  
  160.                       BlockRot13           = #@<
  161.                       BlockFixUUE          = #@>
  162.                       BlockEmailReply      = #@?
  163.  
  164.   ROT13 is an informal, voluntary standard used on the networks to send
  165.   text that some may consider inappropriate.  ROT13 is a convenient way
  166.   that allows one to choose whether or not to read the material.  To read
  167.   the material, one has to make a conscious and deliberate effort to
  168.   convert the text into a readable form.  ROT13 is also used to hide
  169.   answers to questions, puzzles, etc...  BlockRot13 alternately converts
  170.   ROT13 alpha characters into normal text and hides normal alpha
  171.   characters in ROT13.
  172.  
  173.   The most common default for sending large binary files across network
  174.   nodes and gateways uses UUencoding; however, some characters in the
  175.   UUencode set do not make the trip correctly.  On IBM mainframes, the
  176.   EBCDIC to ASCII translation don't do right.  Although I don't fully
  177.   understand why, but, three characters need to be fixed when receiving
  178.   text e-mail files, which include UUencoded files, from IBM mainframes.
  179.   BlockFixUUE will fix the three characters in a marked block.  The three
  180.   characters that need to be fixed in text (as opposed to binary) e-mail
  181.   files received from IBM mainframes are:
  182.  
  183.                   Hex               Decimal             ASCII
  184.  
  185.        1)     5d  ==>  7c         93  ==>  124        ]  ==>  |
  186.        2)     d5  ==>  5b        223  ==>   91        ╒  ==>  [
  187.        3)     e5  ==>  5d        229  ==>   93        σ  ==>  ]
  188.  
  189.  
  190.   When sending a reply to an e-mail, it is customary to prepend any lines
  191.   from the original e-mail with the ">" character.  BlockEmailReply
  192.   prepends "> " to the original line in an e-mail and prepends ">" to all
  193.   replies to replies in a LINE block.
  194.  
  195.  
  196.  
  197.                    New features in TDE 2.0 include :
  198.  
  199.          DateTimeStamp                           = ^2 or Control-@ sign
  200.          SortBoxBlock, ascending or descending   = @S
  201.          ToggleSmartTabs                         = @Tab
  202.          Dynamic left margin for writers         = @V
  203.          Pause, useful with macros               = ^P
  204.          Recursive macros
  205.          Support for Control-Break to stop recursive macros,
  206.               sorting, search/replacing, some block operations,
  207.               formatting text or paragraph, and printing.
  208.          Support for lines as long as 1040 characters.
  209.          Improved undo buffer management.  There is now room for
  210.               the last 10 by 1040  or  130 by 80 deleted lines.
  211.          Gathered all prompts into one header file to aid translation
  212.               of prompts and documentation into other languages.
  213.          Configuration file, option 6 in tdecfg.exe.
  214.  
  215.  
  216.   The date-time stamp was added to TDE because some users talk with field
  217.   units over the phone and the event needs to be date and time stamped.
  218.   Users may customize the date to local preferences, eg MM-DD-YY or
  219.   DD-MM-YY.  The time stamp may use either 12 hour or 24 hour form.
  220.  
  221.   Every once in a while, I need to sort data, names, etc..., in some of my
  222.   files.  The SortBoxBlock function was added to sort lines according to
  223.   the keys in a box block.  The keys may be sorted ascending or
  224.   descending, while the IGNORE/MATCH toggle determines whether case is
  225.   significant.  To sort multiple columns, start the sort with the least
  226.   significant key first.
  227.  
  228.   I also wrote a handler for the Control-Break interrupt, 0x1B.  On IBM
  229.   compatible PCs, the Control-Break key generates an interrupt via
  230.   hardware.  By writing a Control-Break interrupt handler, a user can
  231.   immediately gain control of a run-a-way recursive macro, printing job,
  232.   most box block operations, expanding tabs, trimming space from line
  233.   blocks, formatting a paragraph or text, search/replace, or a sort
  234.   operation.  Although one may trap Control-C, which is a software
  235.   generated interrupt, there is no telling when the operating system will
  236.   turn control over to a Control-C handler.  One may gain immediate
  237.   control with the Control-Break key, however.
  238.  
  239.   The undo-buffer space and management was greatly enhanced.  There is now
  240.   room for over 10k of deleted text in the buffer.  Users may now get back
  241.   entire functions that may have been deleted.  There is room for 130 by
  242.   80 or 10 by 1040 character lines in the new undelete buffer.
  243.  
  244.   All of the prompts in TDE were gathered into one header file to aid the
  245.   translation of documentation as well as the user prompts into other
  246.   languages.  Pierre Jelenc, pcj1@cunixf.cc.columbia.edu and a member of
  247.   the Foreign Language Education Forum (FLEFO) on CompuServe, has
  248.   translated the documentation and has created configuration files for
  249.   several languages.  If you need a non-English version of TDE, contact
  250.   Pierre to find out if he has a version of TDE for you.
  251.  
  252.   A configuration file was added so that users may define all function
  253.   keys, modes, and colors from a configuration file.  Users may also
  254.   define macros in the configuration file.  Those who need to assign ASCII
  255.   and Extended ASCII character to unused function keys will find this
  256.   extremely useful.  Some alphabets need letters with all kinds of accent
  257.   marks.
  258.  
  259.  
  260.                    New features in TDE 1.5 include :
  261.  
  262.                     Ruler                     = @R
  263.                     Block trim trailing       = @T
  264.                     User defined macros:
  265.                        Record macro           = @F3
  266.                        Save macros to file    = #F1
  267.                        Load macros from file  = #F3
  268.                        Clear macro buffer     = ^ESC
  269.                     Critical error handler
  270.  
  271.   If by accident you forget to put a diskette in a floppy drive and try to
  272.   save a file or if you forget to turn on the printer before printing a
  273.   block or file, a critical error occurs.  That kind of error is the
  274.   infamous Abort, Retry, Ignore thing.  A routine was written to give some
  275.   information on the kind and the location of those errors when they
  276.   occur.  The TDE critical error handler gives you all kinds of info and
  277.   then prompts you for a response.  The timeout for critical errors varies
  278.   quite a bit.  Some timeouts may take a couple of minutes.
  279.  
  280.   When I "work" at the USDA, I often need to create or massage formatted
  281.   data files.  Also, a lot of engineers and scientists at the USDA program
  282.   in FORTRAN and the source code needs to be in a certain format.  When
  283.   working with those types of files, it is really useful to have a ruler
  284.   that explicitly shows which column the cursor is in.  The new ruler in
  285.   TDE shows margins, column numbers, and a column pointer.
  286.  
  287.  
  288.  
  289.                    New features in TDE 1.4 include :
  290.  
  291.               Split screen vertically            = F8
  292.               Number box block                   = Alt+N
  293.               Directory list                     = Alt+F1
  294.  
  295.   Also added in tdecfg was a choice of cursor styles and a switch for .bak
  296.   files.  Both of those options are in the mode section of tdecfg.
  297.  
  298.  
  299.  
  300.                           <CR><LF> or <LF> at eol
  301.  
  302.   The functions that write files were expanded to allow you to choose
  303.   whether you want to write a <CR><LF> or just a <LF> at the end of line.
  304.   Some programs look for just the <LF> at the eol while others want the
  305.   <CR><LF> pair at the eol.  TDE has no trouble reading either style but
  306.   allows you to specify the output style.  You may change the style by
  307.   pressing the ToggleCRLF function key or by using tdecfg to set the
  308.   default.  Here's a little diagram that may help explain the new
  309.   functions better than I can write.
  310.  
  311.  
  312.                                                             Output
  313.         Input        TDE's internal representation          Toggle
  314.  
  315.          files       ┌────────────────────────────┐          files
  316.          with        │ tde will read files with   │          with
  317.        <CR><LF> ====>│ lines that terminate in    │ =====> <CR><LF>
  318.         at eol       │ either <CR><LF> or <LF>.   │         at eol
  319.                      │                            │
  320.                      │                            │
  321.          files       │ Internally, all lines end  │          files
  322.          with        │ with the <LF> character.   │          with
  323.          <LF>  =====>│                            │ =====>   <LF>
  324.         at eol       └────────────────────────────┘         at eol
  325.  
  326.  
  327.  
  328.  
  329. Editor fields and information lines:
  330.  
  331.  
  332.                                Sample TDE screen
  333.  
  334.  
  335.          ┌─── File number - each window opened to same file has same number
  336.          │ ┌─── Window letter
  337.          │ │
  338.          │ │    ┌─── Dirty file indicater - asterisk
  339.          │ │    │ ┌─── File name
  340.          │ │    │ │                    ┌──── File attributes
  341.          │ │    │ │                    │    ┌──── Total number of lines in file
  342.          │ │    │ │                    │    │                  ┌─── line:column
  343.                                                          
  344.       ┌──────────────────────────────────────────────────────────────┐
  345.       │    The first line on the screen contains file information    │
  346.       ├──────────────────────────────────────────────────────────────┤
  347.       │........1.....     Optional ruler line    ......7........8│
  348.       ├──────────────────────────────────────────────────────────────┤
  349.       │                                                              │
  350.       │                                                              │
  351.       │                          File area                           │
  352.       │                                                              │
  353.       │                                                              │
  354.       │                                                              │
  355.       ├──────────────────────────────────────────────────────────────┤
  356.       │                 Editor modes and information                 │
  357.       └──────────────────────────────────────────────────────────────┘
  358.                                                          Insert
  359.         │   │    │    │    │    │    │     │     │     │    │     └─ Overwrite
  360.         │   │    │    │    │    │    │     │     │     │    └───── ^Z at eof?
  361.         │   │    │    │    │    │    │     │     │     └───── trim trailing
  362.         │   │    │    │    │    │    │     │     │     space at eol, T = TRUE
  363.         │   │    │    │    │    │    │     │     │
  364.         │   │    │    │    │    │    │     │     └───── CRLF or LF at eol?
  365.         │   │    │    │    │    │    │     └───── word wrap indicator
  366.         │   │    │    │    │    │    └───── Sync cursor in all windows?
  367.         │   │    │    │    │    └───── Ignore / Match search case?
  368.         │   │    │    │    └───── Indent mode?
  369.         │   │    │    └───── Tab modes = Smart/Fixed, In/Deflate, and ptabs
  370.         │   │    └───── Available memory for editing files
  371.         │   └───── Total number of windows, including hidden windows
  372.         └───── Total number of open files
  373.  
  374.  
  375.  
  376. Multiple keys:
  377.  
  378.   I use the following abbreviated key definitions throughout this file:
  379.  
  380.                 ^ = Control       # = Shift       @ = Alt
  381.  
  382.   For example, ^F5 means press and hold the Control key and then press F5
  383.   while holding down the Control key.
  384.  
  385.  
  386. Cursor movement:
  387.  
  388.                             101 Keyboard overview
  389.  
  390.             Cursor keys                               Keypad keys
  391.         ┌─────┬─────┬─────┐                ┌───────┬───────┬───────┬───────┐
  392.         │ Ins │Home │PgUp │                │NumLock│Grey / │Grey * │Grey - │
  393.         ├─────┼─────┼─────┤                ├───────┼───────┼───────┼───────┤
  394.         │ Del │ End │PgDn │                │ Home  │  Up   │ Pg Up │ Grey  │
  395.         └─────┴─────┴─────┘                ├───────┼───────┼───────┤   +   │
  396.                                            │ Left  │Center │ Right │       │
  397.               ┌─────┐                      ├───────┼───────┼───────┼───────┤
  398.               │ Up  │                      │  End  │ Down  │ Pg Dn │ Grey  │
  399.         ┌─────┼─────┼─────┐                ├───────┴───────┼───────┤       │
  400.         │Left │Down │Right│                │     Ins       │  Del  │ Enter │
  401.         └─────┴─────┴─────┘                └───────────────┴───────┴───────┘
  402.  
  403.                                                           
  404.     If you like using these grey                   With Num Lock off,
  405.      cursor keys, these function               you can probably guess most
  406.       assignments are for you.                of these function assignments.
  407.  
  408.           Grey cursor keys                            Keypad keys
  409.  
  410.  Up     - move cursor up                    Home   - toggle col 1 & beg of line
  411.  Down   - move cursor down                 ^Home   - first line in window
  412.  Left   - move cursor left                  Pg Up  - page up
  413.  Right  - move cursor right                ^Pg Up  - goto first page in file
  414. ^Up     - scroll cursor up                  Center - move to center of window
  415. ^Down   - scroll cursor down               ^Center - line to center of window
  416. ^Left   - cursor to previous word           End    - last character in line
  417. ^Right  - cursor to next word              ^End    - last line in window
  418. @Up     - pan up                            Pg Dn  - page down
  419. @Down   - pan down                         ^Pg Dn  - goto last page in file
  420. @Left   - pan left                          Ins    - toggle insert mode
  421. @Right  - pan right                         Del    - delete character
  422. @PgUp   - horizontal page left             ^Del    - stream delete character
  423. @PgDn   - horizontal page right             Grey - - scroll screen up
  424. ^#Left  - pan left                          Grey + - scroll screen down
  425. ^#Right - pan right                        ^Grey - - pan up
  426.                                            ^Grey + - pan down
  427.                                              Enter - Insert line and move down
  428.                                             #Enter - 1st char in next line
  429.                                             ^Enter - column 1 in next line
  430.  
  431.  
  432. Function Keys:
  433.  
  434.   I tried to use some logical order when I assigned functions to the
  435.   function keys.  I use a 101 keyboard most of the time, so it should be
  436.   easy to see the logical function grouping with it.  The function keys
  437.   on a 101 keyboard are placed along the top of the keyboard.  Functions
  438.   are arranged as follows:
  439.  
  440.  
  441.         Help    File              Find/Replace            Window
  442.               Functions              &  Diff             Commands
  443.          F1  F2  F3  F4          F5  F6  F7  F8          F9  F10  F11  F12
  444.  
  445.  
  446.    F1 = Instantaneous Help
  447.  
  448.   @F1 = Directory List
  449.         List the contents of a directory or matching files.  At the
  450.         prompt, press enter to list all files in the current directory or
  451.         enter any valid subdirectory name, file name, or wild card
  452.         characters.  You don't have to put a *.* at the end of a
  453.         subdirectory name; the directory list function adds those wild
  454.         card characters to subdirectory names as a default.  A '\' is
  455.         added to the end of subdirectory names in the file list.  To list
  456.         files in other directories, just move the cursor to the desired
  457.         subdirectory name and press enter.  When you see ..\ in the
  458.         directory list, the double periods represent the parent of the
  459.         current directory.  The .\ represents the current directory.  You
  460.         may move up and down the directory tree by selecting the parent or
  461.         childrens of the current directory.
  462.  
  463.  
  464. File Functions:
  465.  
  466.    F2 = Save file
  467.         Saves all changes made to file.  Existing file is overwritten by
  468.         the new file.  It does not prompt for a new file name -
  469.         automatically assumes you want to overwrite the old file.
  470.  
  471.    F3 = Quit file
  472.         Abandons any changes made in the file and closes or kicks the file
  473.         out of the current window.  If you are editing multiple files or
  474.         have multiple windows, TDE searches for any invisible files to
  475.         display in the current window.  If no invisible windows are found,
  476.         TDE combines windows.  If this is the only file being edited, F3
  477.         quits TDE.  If you made any changes to the file, it asks you if
  478.         you want to abandon them.  You can create an invisible window when
  479.         you load in a file over the current file.  Nothing happens to the
  480.         invisible file or window - you just can't see it.
  481.  
  482.         When I added vertical windows, this routine became a LOT more
  483.         complicated.  To keep things reasonably sane, let's only close
  484.         windows that have three common edges, eg.
  485.  
  486.                         ┌──────┬──────────┐
  487.                         │      │    no    │
  488.                         │      ├─────┬────┤
  489.                         │      │yes1 │yes1│
  490.                         │  no  ├─────┴────┤
  491.                         │      │   yes2   │
  492.                         │      ├──────────┤
  493.                         │      │   yes2   │
  494.                         └──────┴──────────┘
  495.  
  496.         Windows with 'no' cannot be closed.  Windows with 'yes' can be
  497.         combined with windows that have the same yes number.
  498.  
  499.  
  500.    F4 = File (save and quit)
  501.         This function is a combination of Save and Quit (F2 & F3 above).
  502.  
  503.    #F2 = Save as
  504.         If you don't want to overwrite the original file but you want to
  505.         save the contents of the current file, you may save the file under
  506.         a different file name.  This function prompts you for a file name
  507.         to save the changes (press escape to abort).
  508.  
  509.    #F4 = Edit new file
  510.         To bring another file into the editor, use this function.  It
  511.         loads the file into the current window and previous window becomes
  512.         invisible.  You can even load several copies of the same file.  I
  513.         like this because I often need to refer back to the original
  514.         unchanged file on disk.  When I make a booboo in a file, which is
  515.         quite often, I don't necessarily want to quit and start over; I
  516.         just want to get back the part that I messed up.  It is really
  517.         easy to mark the orginal text in a block and copy it to the place
  518.         where I made a booboo.  Each time a file is loaded into TDE, it is
  519.         treated as a different file.
  520.  
  521.    @F2 = Set file attributes
  522.         Change the attributes of a file.  Attributes are:  A = Archive,
  523.         S = System, H = Hidden, R = Read-Only.  You can change the
  524.         attributes of a file so that read-only files can be edited.  To
  525.         edit a read-only file:  1) edit the file, 2) change the file
  526.         attributes to archive, 3) save the changes made in the file, 4)
  527.         change the file attributes back to read-only.
  528.  
  529.    @F4 = Edit next file
  530.         If you type multiple file names or type wildcard characters on the
  531.         command line, press this key to bring in the next file or the next
  532.         matching file into the editor.
  533.  
  534.    -f pattern file(s)         (Command line DefineSearchAndSeize)
  535.        or
  536.    #F12 = DefineSearchAndSeize
  537.         Search and Seize will search files for a pattern and only load
  538.         those files that contain pattern.  The command line Define Search
  539.         and Seize works a little differently than the function key S&S.
  540.         On the command line, spaces are interpretted by DOS as delimiters.
  541.         Therefore, the search pattern on the command line can not have
  542.         any embedded spaces.  On the other hand, the Fkey S&S search
  543.         pattern may contain most any character.
  544.  
  545.         Defining S&S also defines the search pattern.  When a file is
  546.         loaded, press RepeatFind to go to the next occurence of pattern.
  547.         There are actually two find structures - one for the standard
  548.         search function and one for S&S.   Defining S&S also defines
  549.         the search function.  However, redefining the standard search
  550.         structure has no effect on the S&S pattern.  The S&S pattern
  551.         remains defined until another S&S redefines it.
  552.  
  553.     F12 = RepeatSearchAndSeize
  554.         After S&S has been defined, press this key to seize the next file
  555.         for pattern.
  556.  
  557.  
  558. Macros:
  559.  
  560.    @F3 = Macro record
  561.         This key toggles macro record off and on.  A flashing "Recording"
  562.         is displayed in the lite bar, so it shouldn't be too difficult to
  563.         tell when record is on.  This function assigns a keystroke or a
  564.         series of keystrokes to an unused function key.  Keystrokes are
  565.         played back for some prompts.  Prompts that require the user to
  566.         input a name or pattern are played back.  Prompts that require the
  567.         user to enter a choice, "Overwrite existing file (y/n)?" for
  568.         example, are not played back.
  569.  
  570.         There is room for 1024 keystrokes in the macro buffer.  There are
  571.         no restrictions on the length of a single macro.  If you want, you
  572.         may define one macro that contains 1024 keystrokes.  When TDE
  573.         terminates, all macros definitions disappear.  Macro definitions
  574.         are temporary.  If you want to reuse macros that are defined
  575.         during an editing session, they need to be saved before you exit
  576.         TDE.
  577.  
  578.                              Recursive Macros
  579.  
  580.         "Recursive" macros are supported.  Only one level of recursion is
  581.         supported in TDE.  Here's a simple example of a recursive macro:
  582.  
  583.                         Alt-F3    = turn macro record on
  584.                         Alt-5     = assign the recording to Alt-5
  585.                         Down      = move cursor down a line
  586.                         Alt-5     = call the macro we just defined
  587.                         Alt-F3    = turn macro record off
  588.  
  589.         Enter this macro and press Alt-5 to see what a recursive macro
  590.         does.  Recursive macros repeatedly execute themselves until an
  591.         error condition occurs, which usually happens when the end of file
  592.         is reached.  I often use recursive macros to delete certain lines
  593.         in a file or to rearrange the fields of a formatted data file.
  594.  
  595.         Each editor function in TDE returns a code to the macro processor
  596.         that indicates whether or not an error occured.  Here are some
  597.         conditions that generate an error:  attempting to move the cursor
  598.         past the end of file or behind the start of the file, trying to
  599.         add too many characters in a line, attempting block operations
  600.         with no marked block, etc...
  601.  
  602.         One interesting phenomenon about recursive macros is that a macro
  603.         can be defined that never terminates.  The simplest
  604.         non-terminating macro definition in TDE is:
  605.  
  606.                   Alt-F3  = turn macro record on
  607.                   Alt-7   = assign the recording to Alt-7
  608.                   Alt-7   = call the macro we just defined
  609.                   Alt-F3  = turn macro record off
  610.  
  611.         This a+7 macro carries out no instructions.  The only thing this
  612.         macro does is call itself.  In a perfect world, this macro will
  613.         execute forever.  There are lots of ways to create non-terminating
  614.         recursive macros.  Be creative and try creating a few non-
  615.         terminating recursive macros yourself.  With several different
  616.         sizes and shapes of horizontal and vertical windows on the screen
  617.         and with cursor sync toggled on, you can create some really neat
  618.         macros using cursor movement keys.  If you get tired of waiting
  619.         for forever, just press Control-Break to stop any macro.
  620.  
  621.                       A Really Neat Recursive Macro
  622.  
  623.         Here's a really neat recursive macro that you might try with
  624.         cursor sync turned off.  Edit a fairly large file, one with at
  625.         least a 1000 lines, and move the cursor to line 500 or the half
  626.         way point.  Then, split the screen into several vertical windows
  627.         with about 15 columns in each window , e.g.:
  628.  
  629.                 ┌───────┬───────┬────────┬───────┬───────┐
  630.                 │       │       │        │       │       │
  631.                 │       │       │        │       │       │
  632.                 │       │       │        │       │       │
  633.                 │       │       │ start  │       │       │
  634.                 │       │       │        │       │       │
  635.                 │       │       │        │       │       │
  636.                 │       │       │        │       │       │
  637.                 └───────┴───────┴────────┴───────┴───────┘
  638.  
  639.         With cursor sync turned off and macro record turned on, define a
  640.         macro that 1) moves the cursor down in one window, 2) goes to the
  641.         next window and moves the cursor up, 3) goes to the next window
  642.         and moves the cursor down, 4) when the cursor finally makes it
  643.         back to the starting window, make the macro recursive.  Suppose
  644.         the cursor is in the window labeled "start" in the sample screen
  645.         above.  Here's the way the keystrokes in this macro would be
  646.         recorded:
  647.  
  648.  
  649.                 Alt-F3    = turn macro record on
  650.                 Alt-8     = assign this macro to Alt-8
  651.                 Down      = move cursor down in "start" window
  652.                 F10       = next window
  653.                 Up        = move cursor up
  654.                 F10       = next window
  655.                 Down      = move cursor down
  656.                 F10       = next window
  657.                 Down      = move cursor down
  658.                 F10       = next window
  659.                 Up        = move cursor up
  660.                 F10       = next window - cursor is now in "start"
  661.                 Alt-8     = call the macro just defined. it's now recursive.
  662.                 Alt-F3    = turn macro record off
  663.  
  664.         Press Alt-8 and watch a really neat recursive macro.
  665.  
  666.  
  667.    #F1 = Save macro file
  668.         Saves all macro definitions to a file.  TDE prompts for the macro
  669.         file name.
  670.  
  671.    #F3 = Load macro file
  672.         Prompts for a search pattern or file name.  I can never remember
  673.         macro file or path names, so this function uses a file pick list.
  674.  
  675.    ^ESC = Clear macros
  676.         Resets or clears all macros.
  677.  
  678.    ^P  = Pause
  679.         When this function is part of a macro, press any key to continue
  680.         the macro or press ESC to halt or break the macro.
  681.  
  682.  
  683. Find and Search/Replace:
  684.  
  685.    TDE uses the Boyer-Moore search algorithm for finding strings.  Typically,
  686.    the longer the search pattern the faster the search.  So, if you want to
  687.    speed up searches, try searching for longer patterns, e.g. phrases.
  688.  
  689.    ^F5 = Toggle search case
  690.         You can toggle the case of the search flag at any time, even
  691.         after you define the search pattern.
  692.  
  693.    #F5 = find forward
  694.         To define the search pattern, use this function.  It prompts you
  695.         for the search pattern.  The pattern is defined, across files,
  696.         until changed.
  697.  
  698.    #F6 = find backward
  699.         Same as find forward except search backward in file.
  700.  
  701.    F5 = Repeat find forward
  702.         Once the search pattern has been defined (Shift F5 or Shift F6),
  703.         you can press this key at any time in any file to find the next
  704.         occurrence of pattern.  I decided to use two sets of functions to
  705.         perform searches.  Once I found a pattern, I might do some editing
  706.         and then find the next occurrence.  I hate to define the search
  707.         pattern over and over or set the search direction over and over.
  708.         This function does a wrap search - when it reaches the eof it
  709.         starts over at the beginning of the file.
  710.  
  711.    F6 = Repeat find backward
  712.         Like repeat find forward, you can press this key at anytime once
  713.         the search pattern has been defined.
  714.  
  715.    @F5 = Repeat find forward2
  716.         Like F5 except the cursor is not repositioned to the middle of the
  717.         screen.  This function is useful when working with data files.
  718.  
  719.    @F6 = Repeat find backward2
  720.         Like F6 except the cursor is not repositioned to the middle of the
  721.         screen.
  722.  
  723.    #F8 = Replace String
  724.         This function prompts you for the search pattern and the
  725.         replacement text.  It aIso prompts for the replace direction.  If
  726.         you want to match the search case, remember to toggle the search
  727.         flag, which can be done at any time.  You can either do prompt or
  728.         no prompt replacing.   Regardless of prompt or no prompt
  729.         replacing, this function actually moves the cursor to the pattern
  730.         and displays it on the screen and replaces the text. If you are
  731.         using TDE on a slow machine, you can see the search/replace taking
  732.         place.  I implemented the function this way because I just like to
  733.         see what the search/replace function is doing.  Press
  734.         Control-Break to stop no prompt replacing.
  735.  
  736.  
  737. Diff Functions:
  738.  
  739.    #F7 = DefineDiff
  740.         This function initializes diff.  It prompts for the window number
  741.         and letter to diff, ignore leading space, ignore all space, ignore
  742.         blank lines, ignore case, and ignore end of line.  Any two windows
  743.         may be diffed.  Diff only requires that the windows be visible.
  744.  
  745.                                Diff prompts
  746.  
  747.       DIFF:  Enter first window number and letter (e.g. 1a) :
  748.       DIFF:  Enter next window number and letter (e.g. 2a) :
  749.       DIFF:  Start diff at (B)eginning of file or (C)urrent position? (b/c)
  750.       DIFF:  Ignore leading spaces (y/n)?
  751.       DIFF:  Ignore all space (y/n)?
  752.       DIFF:  Ignore blank lines (y/n)?
  753.       DIFF:  Ignore end of line (useful with reformatted paragraphs) (y/n)?
  754.  
  755.     F7 = RepeatDiff
  756.         Once the diff has been defined, press RepeatDiff to find the next
  757.         diff.
  758.  
  759.  
  760. Window Functions:
  761.  
  762.    F8 = Split window vertically
  763.         Splits the screen at the current cursor location.  The current
  764.         file is displayed in multiple windows.  Changes to a file are
  765.         echoed in all windows opened to the same copy of that file.  You
  766.         can also see any marked blocks in the same copy of the file in
  767.         different windows.  There has to be at least 15 columns in any
  768.         window, so the number of visible windows is limited by the display
  769.         screen.
  770.  
  771.    F9 = Split window horizontally
  772.         Splits the screen at the current cursor location.  There has to be
  773.         at least 1 text line in any window, so the number of visible
  774.         windows is limited by the display screen.
  775.  
  776.    #F9 = Resize window
  777.         Sometimes there is a need to concentrate on the contents of one
  778.         window.  Use the up and down arrow keys to adjust the current
  779.         window to desired size.  Changing the size of the top window is
  780.         not allowed.
  781.  
  782.    ^F9 = Zoom window
  783.         Makes the current window fill the whole screen.  All windows
  784.         except the current window become invisible.
  785.  
  786.    F10 = Next window
  787.         If more than one window is displayed, you can press one key to
  788.         move to the next window.
  789.  
  790.    #F10 = Previous window
  791.         Move to previous window - opposite of next window.
  792.  
  793.    ^F10 = Next Hidden Window
  794.         Displays "hidden" or "invisible" windows in the same place as the
  795.         current window.  The current window then becomes invisible.
  796.  
  797.  
  798. Block Commands:
  799.  
  800.   Block operations can be done within or between files.  Operations on
  801.   line blocks that move text are carried out on the line immediately
  802.   below the cursor.  Operations on box or stream blocks that move text
  803.   begin at the column of the cursor.  Press Control-Break to stop most Box
  804.   operations.  Nearly all Line and Stream operations happen so fast that
  805.   you can't stop them once they are started.
  806.  
  807.    @B - Mark Box Block
  808.         This key is used to mark both the beginning and ending corner of
  809.         a box block.
  810.  
  811.    @L - Mark Line Block
  812.         This key is similar to the operation of the box block, but entire
  813.         lines are marked.
  814.  
  815.    @X - Mark Stream Block
  816.         All the text between the beginning and ending column, sorta like a
  817.         stream of characters, is marked.  Useful with sentences.
  818.  
  819.    @U - Unmark Block
  820.         If you make a booboo when marking blocks, press @U to unmark the
  821.         block and start over.  After certain block operations, the block
  822.         may remain marked.
  823.  
  824.    @G - Group Delete block
  825.         Sorta self explanatory.  This function deletes the text in the
  826.         marked block.
  827.  
  828.    @M - Move block
  829.         Move the cursor to the desired location and press @M to move the
  830.         marked block.  In line mode, the text is moved to the line
  831.         immediately below the cursor.  In box and stream mode, the block
  832.         is moved to the column of the cursor.
  833.  
  834.    @C - Copy block
  835.         With line blocks, the block is copied to the line below the
  836.         cursor.  With box and stream blocks, the block is copied
  837.         beginning at the column of the cursor.  If you try to copy a
  838.         Line block within itself, the block copy starts at the first
  839.         line immediately after the marked block.
  840.  
  841.    @K - Kopy block
  842.         Same as copy block except block stays marked.  It's sorta like a
  843.         poor man's cut-and-paste buffer.
  844.  
  845.    @O - Overlay block
  846.         You can only overlay Box blocks.  The original block stays marked
  847.         after the operation.
  848.  
  849.    @F - Fill box block
  850.         Fills the marked Box block with character.  This function is
  851.         useful for filling in a column of periods for tables and such.
  852.  
  853.    @N - Number box block
  854.         TDE prompts you for the starting number, the increment, and
  855.         whether to left or right justify the numbers.  TDE only handles
  856.         integers  -  no floating point numbers are allowed.  I felt that
  857.         there were too many things involved in real numbers, eg. number
  858.         of significant places to left of decimal, to right of decimal,
  859.         exponents, engineering form, scientific form, etc....  If you
  860.         want real numbers, just use a combination of the number box
  861.         and fill box functions.  Use the fill box function to make a
  862.         column of decimals and the number box function to number the left
  863.         and right side of the decimal.
  864.  
  865.    @P - Print block
  866.         Prints the block to the PRN device.  I haven't tried redirecting
  867.         the PRN, but it should work.  This function prompts for block or
  868.         file to print.  Press Control-Break to stop printing.
  869.  
  870.    @S - Sort box block
  871.         Lines are sorted, ascending or descending, using the contents of
  872.         the box block as the sort keys.  The Ignore/Match toggle
  873.         determines whether case of the keys is significant.  To sort
  874.         multiple columns, sort the least significant column first.  Press
  875.         Control-Break to stop.
  876.  
  877.   #@S - Swap block
  878.         Swap block only works with BOX blocks.  The area to be swapped
  879.         is assumed to be the width of the BOX block.  Make sure the
  880.         cursor is at the top left corner of the area to swap before
  881.         swapping.
  882.  
  883.    @W - Write block to file
  884.         Writes the marked block to a file.  TDE prompts for the file
  885.         name.
  886.  
  887.    @E - Block expand tabs
  888.         Expands the tabs in the marked block, which must be a LINE block,
  889.         using the current tab setting.  Press Control-Break to stop.
  890.  
  891.    @T - Block trim trailing
  892.         Trims trailing space, if any, at the end of each line in a LINE
  893.         block.  Press Control-Break to stop.
  894.  
  895.    @< - Block upper case
  896.         Convert all lower case characters in the block to upper case.
  897.         Our old IBM mainframe line printers can only print upper case.
  898.  
  899.    @> - Block lower case
  900.         Convert all upper case characters in the block to lower case.
  901.  
  902.    @? - Block strip high bit
  903.         Strip the high bit off all characters in the block.  This function
  904.         is useful when editing files produced by WordStar.
  905.  
  906.    #@< - BlockRot13
  907.         Convert all alpha characters in a block using ROT13.
  908.  
  909.    #@> - BlockFixUUE
  910.         Fixes the EBCDIC to ASCII problem with text e-mail.
  911.  
  912.    #@? - BlockEmailReply
  913.         Prepends the customary "> " or ">" to e-mail replies to lines in a
  914.         LINE block.
  915.  
  916.  
  917. Word Processing Commands:
  918.  
  919.    @V - toggle word wrap
  920.         Toggle word wrap between off, Fixed Wrap, and Dynamic Wrap.  In
  921.         Fixed Wrap mode, the left margin is explicitly determined by the
  922.         left margin setting.  In Dynamic Wrap mode, the left margin is
  923.         determined by the indentation of the current line.  Writers may
  924.         find the Dynamic Wrap mode easier to use.  If the cursor is
  925.         somewhere in the line, words are pushed to the next line.
  926.  
  927.         In TDE, other than margins, word wrap and format paragraph or
  928.         format text have nothing to do with each other.  Word wrap is
  929.         used to push characters or the cursor to the next line when the
  930.         right margin is violated.  Format paragraph and format text can
  931.         be used at any time - they do not depend on the state of the
  932.         WordWrap flag.
  933.  
  934.   ^F6 - Set Left margin
  935.         May be set to any column equal to or greater than 1 and less than
  936.         the right margin.
  937.  
  938.   ^F7 - Set Right margin
  939.         May be set to any column greater than the left margin and less
  940.         than the maximum line length or 1040.
  941.  
  942.   ^F8 - Set Paragraph margin
  943.         The paragraph margin may be set to any column less than the right
  944.         margin.
  945.  
  946.   @F7 - format paragraph
  947.         Text is formatted from the beginning of the paragraph according
  948.         to the current left, right, and paragraph margins.  If the cursor
  949.         is not on the beginning line of a paragraph, TDE searches for
  950.         start of the paragraph and formatting starts there.  The entire
  951.         paragraph is formatted according to the margins.
  952.  
  953.   ^B - Format Text
  954.         Text is formatted from the cursor onward.  This function does not
  955.         search for the beginning of the paragraph to start the format.
  956.  
  957.   @F8 - Left justify
  958.         Beginning of current line is adjusted to start at left margin
  959.  
  960.   @F9 - Right justify
  961.         End of current line is adjusted so it ends at the right margin
  962.  
  963.  @F10 - Center justify
  964.         Current line is centered between the left and right margins.
  965.  
  966.  
  967. Tabs:
  968.  
  969.    Tab
  970.         If in insert mode, insert the appropriate number of spaces for a
  971.         tab and move the cursor left.  If in overwrite mode, just move
  972.         the cursor left w/o inserting text.
  973.  
  974.   #Tab
  975.         Move cursor to previous tab.
  976.  
  977.   ^Tab
  978.         Set ptabs and ltabs.
  979.  
  980.   @Tab
  981.         Toggle smart tab mode.  Smart tab positions are determined by
  982.         looking for the first, previous, non-blank line above the cursor
  983.         and then positioning the cursor at the begining of the next or
  984.         previous word from the column of the cursor.  It's useful for
  985.         building tables and formatted data files.
  986.  
  987.    #@T
  988.         Toggle TabInflate mode.  In TabInflate mode, tabs are not
  989.         physically expanded.  Tabs are filled with space to give the
  990.         illusion of physical expansion.
  991.  
  992.  
  993. Toggles:
  994.  
  995.    ^F1
  996.         Toggle cursor sync.  Only cursor movement commands are synced.
  997.         Commands that change text are not synced.
  998.  
  999.    ^F2
  1000.         Toggle eol display.  A special character is displayed in the
  1001.         column of the actual new line.
  1002.  
  1003.    ^F3
  1004.         Toggle writing <CR><LF> or <LF> at end of line.  TDE will read a
  1005.         text file with lines that end in either method; however, you may
  1006.         want to write the file in a different method.  I think *nix
  1007.         systems only want a <LF> of the end of line.
  1008.  
  1009.    ^F4
  1010.         Toggle trimming trailing space at the end of line.  A 'T' is
  1011.         displayed in the bottom right of the mode line to indicate
  1012.         trailing space is trimmed.
  1013.  
  1014.    ^F5 = Toggle search or sort case
  1015.         You can toggle the case flag at any time, even after you define
  1016.         the search pattern.
  1017.  
  1018.    Ins
  1019.         Toggle between insert and overwrite mode.
  1020.  
  1021.    @I
  1022.         Toggle between indent and no indent mode.  In indent mode, TDE
  1023.         searches for the first non-blank character on previous lines and
  1024.         places the cursor on that column when a carriage return is
  1025.         pressed.  When backspacing in indent mode, TDE lines up the
  1026.         indentation with the first non-blank character of the previous
  1027.         line(s).
  1028.  
  1029.    @R - Toggle ruler
  1030.         Toggle display of ruler in all visible windows.
  1031.  
  1032.    @V - toggle word wrap
  1033.         Toggle word wrap between Off, Fixed Wrap, and Dynamic Wrap.
  1034.  
  1035.    @Z
  1036.         Toggle writing Control Z at the end of file.  Some programs may
  1037.         misbehave if a Control Z is not at the end of the file.
  1038.  
  1039.  
  1040. Other keys:
  1041.  
  1042.    Enter
  1043.         Insert a newline at the cursor.  If the cursor is in the middle of
  1044.         a line, the line is split at the cursor.  Indentation is matched
  1045.         if the editor is in the Indent mode.
  1046.  
  1047.    #Enter
  1048.         Move the cursor down a line.  The cursor is placed on the first
  1049.         non-blank character in the next line.  No lines are added to the
  1050.         file.
  1051.  
  1052.    ^Enter
  1053.         Move the cursor down a line.  The cursor is placed on column 1 in
  1054.         the next line.  No lines are added to the file.
  1055.  
  1056.    Up (arrow)
  1057.         Move cursor up.
  1058.  
  1059.    Down (arrow)
  1060.         Move cursor down.
  1061.  
  1062.    Left (arrow)
  1063.         Move cursor left.
  1064.  
  1065.    Right (arrow)
  1066.         Move cursor right.
  1067.  
  1068.    Home
  1069.         Toggles between the first non-blank character and column zero.
  1070.  
  1071.    End
  1072.         Move cursor to the end of line character.
  1073.  
  1074.    Page Up
  1075.         Move cursor up one page.
  1076.  
  1077.    Page Down
  1078.         Move cursor down one page.
  1079.  
  1080.    ^Right
  1081.         Move cursor one word right.
  1082.  
  1083.    ^Left
  1084.         Move cursor one word left.
  1085.  
  1086.    ^#Right   (Control+Shift+Right)
  1087.         Pan the screen one character to the right.
  1088.  
  1089.    ^#Left    (Control+Shift+Left)
  1090.         Pan the screen one character to the left.
  1091.                                                 
  1092.    ^Home
  1093.         Move cursor to first line on screen.
  1094.  
  1095.    ^End
  1096.         Move cursor to last line on screen.
  1097.  
  1098.    ^Page Up
  1099.         Move cursor to first page in file.
  1100.  
  1101.    ^Page Down
  1102.         Move cursor to last page in file.
  1103.  
  1104.    Zip to line
  1105.         Move to line number.  TDE prompts for line number.  Press Escape
  1106.         to abort.
  1107.  
  1108.    Center
  1109.         The cursor is moved to the center of the current window.
  1110.  
  1111.   ^Center
  1112.         The line the cursor is on is moved to the center of the current
  1113.         window.
  1114.  
  1115.    Grey -  (on the key pad) or
  1116.    ^Down
  1117.         Scroll window up with cursor staying on same line in file.
  1118.  
  1119.    Grey +  (on the key pad) or
  1120.    ^Up
  1121.         Scroll window down with cursor staying on same line in file.
  1122.  
  1123.   @Grey Up (the arrow in the cursor/control cluster) or
  1124.   ^Grey -  (grey - on keypad)
  1125.         Cursor stays on same line of the screen as the file scrolls up.
  1126.  
  1127.   @Grey Down (the arrow in the cursor/control cluster) or
  1128.   ^Grey +  (grey + on keypad)
  1129.         Cursor stays on same line of the screen as the file scrolls down.
  1130.  
  1131.   @Grey PgUp
  1132.         Horizontal page left.
  1133.  
  1134.   @Grey PgDn
  1135.         Horizontal page right.
  1136.  
  1137.    ESC - undo line
  1138.         Get back the original unchanged line.  When cursor is moved off a
  1139.         line, all changes to the file are made and there is no way to get
  1140.         back the contents of a line.
  1141.  
  1142.    Del
  1143.         Delete the character, if any, under the cursor.
  1144.  
  1145.    ^Del
  1146.         Delete the characters in the file as if they were a stream.
  1147.         Lines will be joined at the cursor and eventually every
  1148.         character in the file may be deleted.
  1149.  
  1150.    Backspace
  1151.         Delete the character to the left of the cursor and move left.  If
  1152.         the cursor is on the first column of a line, the current line is
  1153.         joined with the line above.  If in indent mode and the cursor is
  1154.         on the first non-blank character, TDE matches the indentation of
  1155.         the previous line(s).
  1156.  
  1157.    @=
  1158.         Duplicates the current line.
  1159.  
  1160.    @-
  1161.         Deletes the text from the cursor to the end of line.
  1162.  
  1163.    ^Y
  1164.         Deletes current line, cursor does not move.
  1165.  
  1166.    @D
  1167.         Deletes current line, cursor does not move (exactly same as ^Y).
  1168.  
  1169.    @Y  or  ^U
  1170.         Undelete the most recently deleted line.  The undelete buffer has
  1171.         room for 10k of deleted text.  If more than 10k of text is
  1172.         deleted, the oldest line(s) are pushed out before the new one is
  1173.         added.  You may press ^U repeatedly to undelete all lines in the
  1174.         buffer.
  1175.  
  1176.         Deleted lines from line delete, delete to end of line, word
  1177.         delete, join line, and backspace are stored in the undelete
  1178.         buffer.
  1179.  
  1180.    @A
  1181.         Add a blank line below cursor.
  1182.  
  1183.    ^_  or Control underline
  1184.         Split line at column of cursor.  If in indent mode, the split line
  1185.         is autoindented.
  1186.  
  1187.    @J
  1188.         Join the current line with the line below.
  1189.  
  1190.    ^]
  1191.         Paren Balance.
  1192.  
  1193.    @1 - @3
  1194.         Set a file marker.  Each file may have up to 3 markers.
  1195.  
  1196.    #@1 - #@3    (Shift+Alt+1 thru Shift+Alt+3)
  1197.         Goto a previously defined file marker.
  1198.  
  1199.  
  1200.    ^@  (Control+At sign -- not Control+Alt.  Control+At sign is the first
  1201.           character in the ASCII character set, Control+2 on many keyboards)
  1202.         Writes the current system date and time at the column of the
  1203.         cursor.  Use tdecfg to set the desired year and time format.
  1204.  
  1205.    Control-Break
  1206.         In TDE, Control-Break will stop printing, sorting,
  1207.         search/replacing, and recursive macros.
  1208.  
  1209.  
  1210.  
  1211. WordStar style commands:
  1212.  
  1213.   A limited number of WordStar style commands are implemented in TDE.  I
  1214.   have no plans, whatsoever, to implement any additional WordStar style
  1215.   commands.  This implementation may not correspond exactly to the
  1216.   WordStar command convention.  WordStar is a trademark of WordStar
  1217.   International.
  1218.  
  1219.    ^A - word left
  1220.    ^B - format text
  1221.    ^C - screen down
  1222.    ^D - character right
  1223.    ^E - line up
  1224.    ^F - word right
  1225.    ^G - delete character
  1226.    ^H - backspace
  1227.    ^I - tab
  1228.    ^J - help
  1229.    ^K - n/a
  1230.    ^L - n/a
  1231.    ^M - return (carriage control, enter)
  1232.    ^N - add line below cursor
  1233.    ^O - n/a
  1234.    ^P - n/a
  1235.    ^Q - n/a
  1236.    ^R - page up
  1237.    ^S - character left
  1238.    ^T - word delete
  1239.    ^U - undelete line
  1240.    ^V - toggle insert mode
  1241.    ^W - scroll up line
  1242.    ^X - line down
  1243.    ^Y - delete line
  1244.    ^Z - scroll line down
  1245.    ^\ - redraw screen
  1246.  
  1247.  
  1248. Editor command summary:
  1249.  
  1250.    Function                      Description
  1251.  
  1252. Help                    Display instantaneous help screen
  1253. Rturn                   Insert newline and move down while matching indentation
  1254. NextLine                Move cursor to first character in next line
  1255. BegNextLine             Move cursor to first column in next line
  1256. LineDown                Move cursor down a line
  1257. LineUp                  Move cursor up a line
  1258. CharRight               Move cursor right one character
  1259. CharLeft                Move cursor left one character
  1260. PanRight                Pan screen one character right
  1261. PanLeft                 Pan screen one character left
  1262. WordRight               Move cursor to beginning of next word
  1263. WordLeft                Move cursor to beginning of previous word
  1264. ScreenDown              Page screen down
  1265. ScreenUp                Page screen up
  1266. EndOfFile               Move to the last page in a file
  1267. TopOfFile               Move to the first page in a file
  1268. BotOfScreen             Move cursor to bottom of current window
  1269. TopOfScreen             Move cursor to top of current window
  1270. EndOfLine               Move cursor to end of line
  1271. BegOfLine               Move cursor to first character in line or column 1
  1272. JumpToLine              Move cursor to line entered by user
  1273. CenterWindow            Move cursor to center of current window
  1274. CenterLine              Move current line and cursor to center of window
  1275. HorizontalScreenRight   Page screen right
  1276. HorizontalScreenLeft    Page screen left
  1277. ScrollDnLine            Scroll screen down 1 line and cursor moves with line
  1278. ScrollUpLine            Scroll screen up 1 line and cursor moves with line
  1279. PanUp                   Scroll screen up 1 line and cursor does not move
  1280. PanDn                   Scroll screen down 1 line and cursor does not move
  1281. ToggleOverWrite         Toggle insert/overwrite mode and cursor changes shape
  1282. ToggleSmartTabs         Toggle smart tab mode on/off
  1283. ToggleIndent            Toggle indent mode on/off
  1284. ToggleWordWrap          Toggle word wrap on/off
  1285. ToggleCRLF              Toggle CRLF/LF at eol when writing file to disk
  1286. ToggleTrailing          Toggle trim trailing space at eol
  1287. ToggleZ                 Toggle writing ^Z at eof
  1288. ToggleEol               Toggle display of eol character
  1289. ToggleSync              Toggle cursor sync
  1290. ToggleRuler             Toggle ruler display
  1291. ToggleTabInflate        Toggle expanding tabs in display
  1292. SetTabs                 Set file tabs
  1293. SetLeftMargin           Set left margin
  1294. SetRightMargin          Set right margin
  1295. SetParagraphMargin      Set paragraph margin
  1296. FormatParagraph         Format the entire paragraph according to margins
  1297. FormatText              Format from the cursor line to end of paragraph
  1298. LeftJustify             Left justify a line
  1299. RightJustify            Right justify a line
  1300. CenterJustify           Center justify a line
  1301. Tab                     Move cursor to next tab and add spaces if insert mode
  1302. BackTab                 Move cursor to previous tab and delete if insert mode
  1303. ParenBalance            Match (), {}, or [] under the cursor
  1304. BackSpace               Delete previous character
  1305. DeleteChar              Delete current character, but do not join lines
  1306. StreamDeleteChar        Delete current character and join lines if at eol
  1307. DeleteLine              Delete current line
  1308. DelEndOfLine            Delete from the cursor to the eol
  1309. WordDelete              Delete from the cursor to the end of word
  1310. AddLine                 Insert a blank line under the cursor
  1311. SplitLine               Split the current line at the cursor
  1312. JoinLine                Join next line with current line at the cursor
  1313. DuplicateLine           Duplicate the current line
  1314. AbortCommand            Abort editor functions
  1315. UndoLine                Get back the original contents of a line
  1316. UndoDelete              Get back up to the last 10k of deleted text
  1317. ToggleSearchCase        Toggle match/ignore search case or sort case
  1318. FindForward             Prompt for pattern and search forward
  1319. FindBackward            Prompt for pattern and search backward
  1320. RepeatFindForward1      Repeat find forward and adjust cursor if needed
  1321. RepeatFindForward2      Repeat find forward and do not adjust cursor
  1322. RepeatFindBackward1     Repeat find backward and adjust cursor if needed
  1323. RepeatFindBackward2     Repeat find backward and do not adjust cursor
  1324. ReplaceString           Search and replace pattern forward/backward
  1325. DefineDiff              Define starting diff options
  1326. RepeatDiff              Find the next diff
  1327. MarkBox                 Mark start or end of a box block
  1328. MarkLine                Mark start or end of a line block
  1329. MarkStream              Mark start or end of a stream block
  1330. UnMarkBlock             Unmark a block
  1331. FillBlock               Fill a box block with prompted character
  1332. NumberBlock             Fill a box block with starting number using increment
  1333. CopyBlock               Copy a block to cursor and unmark block
  1334. KopyBlock               Copy a block to cursor and leave block marked
  1335. MoveBlock               Move a block to cursor and unmark block
  1336. OverlayBlock            Overlay a box block
  1337. DeleteBlock             Delete a block
  1338. SwapBlock               Swap contents of BOX block w/ cursor
  1339. BlockToFile             Write a marked block to a file
  1340. PrintBlock              Print a block or file
  1341. BlockExpandTabs         Expand tabs in marked LINE block using tab setting
  1342. BlockCompressTabs       Compress space to tabs in LINE block
  1343. BlockIndentTabs         Compress leading space to tabs in LINE block
  1344. BlockTrimTrailing       Trim trailing space from all lines in a line block
  1345. BlockUpperCase          Convert all lower case in block to upper case
  1346. BlockLowerCase          Convert all upper case in block to lower case
  1347. BlockRot13              Rotate alpha characters by 13
  1348. BlockFixUUE             Fix the ASCII-EBCDIC translation problem
  1349. BlockEmailReply         Prepend '>' to included mail blocks
  1350. BlockStripHiBit         Strip the high bit from all characters in block
  1351. SortBoxBlock            Sort line according to keys in box block
  1352. DateTimeStamp           Insert system time and date
  1353. EditFile                Editor prompts for file to edit
  1354. DirList                 List matching files in subdirectories
  1355. File                    Save file and quit window
  1356. Save                    Save file
  1357. SaveAs                  Save file under a new file name
  1358. SetFileAttributes       Set current file attributes
  1359. EditNextFile            Edit next file on command line
  1360. DefineSearchAndSeize    Initial pattern and search files
  1361. RepeatSearchAndSeize    Search and load next file that contains pattern
  1362. RedrawScreen            Redraw the screen
  1363. SizeWindow              Change size of current window
  1364. SplitHorizontal         Split current window horizontally
  1365. SplitVertical           Split current window vertically
  1366. NextWindow              Move to next window
  1367. PreviousWindow          Move to previous window
  1368. ZoomWindow              Make current window the maximum window size
  1369. NextHiddenWindow        Switch to next hidden window
  1370. SetMark1                Set a file marker
  1371. SetMark2
  1372. SetMark3
  1373. GotoMark1               Move cursor to previously defined marker
  1374. GotoMark2
  1375. GotoMark3
  1376. RecordMacro             Record keystrokes
  1377. PlayBack                Used in config file - play back keystrokes
  1378. SaveMacro               Save macro to a file
  1379. LoadMacro               Load macro from a file
  1380. ClearAllMacros          Clear the macro buffer
  1381. Pause                   Pause a macro
  1382. Quit                    Quit current window and file and abandon changes
  1383.